﻿package Message.Game
{
    import Engine.RMI.*;
    import Framework.Serialize.*;
    import Message.Public.*;
    import flash.utils.*;

    public class IMailPrxHelper extends RMIProxyObject implements IMailPrx
    {
        public static const NAME:String = "Message.Game.IMail";

        public function IMailPrxHelper()
        {
            name = "IMail";
            return;
        }// end function

        public function getMailAttachment_async(param1:AMI_IMail_getMailAttachment, param2:Number, param3:int, param4:Boolean) : void
        {
            var _loc_5:* = makeContext(session);
            var _loc_6:* = makeCall("getMailAttachment");
            var _loc_7:* = new SerializeStream();
            _loc_7.writeLong(param2);
            _loc_7.writeInt(param3);
            _loc_7.writeBool(param4);
            Outgoing.invokeAsync(_loc_5, _loc_6, _loc_7, param1);
            return;
        }// end function

        public function getMailAttachments_async(param1:AMI_IMail_getMailAttachments, param2:Array) : void
        {
            var _loc_3:* = makeContext(session);
            var _loc_4:* = makeCall("getMailAttachments");
            var _loc_5:* = new SerializeStream();
            SeqLongHelper.write(_loc_5, param2);
            Outgoing.invokeAsync(_loc_3, _loc_4, _loc_5, param1);
            return;
        }// end function

        public function queryMail_async(param1:AMI_IMail_queryMail, param2:int, param3:int, param4:int, param5:int) : void
        {
            var _loc_6:* = makeContext(session);
            var _loc_7:* = makeCall("queryMail");
            var _loc_8:* = new SerializeStream();
            _loc_8.writeInt(param2);
            _loc_8.writeInt(param3);
            _loc_8.writeInt(param4);
            _loc_8.writeInt(param5);
            Outgoing.invokeAsync(_loc_6, _loc_7, _loc_8, param1);
            return;
        }// end function

        public function readMail_async(param1:AMI_IMail_readMail, param2:Number) : void
        {
            var _loc_3:* = makeContext(session);
            var _loc_4:* = makeCall("readMail");
            var _loc_5:* = new SerializeStream();
            _loc_5.writeLong(param2);
            Outgoing.invokeAsync(_loc_3, _loc_4, _loc_5, param1);
            return;
        }// end function

        public function removeMail_async(param1:AMI_IMail_removeMail, param2:Array) : void
        {
            var _loc_3:* = makeContext(session);
            var _loc_4:* = makeCall("removeMail");
            var _loc_5:* = new SerializeStream();
            SeqLongHelper.write(_loc_5, param2);
            Outgoing.invokeAsync(_loc_3, _loc_4, _loc_5, param1);
            return;
        }// end function

        public function sendGmReport_async(param1:AMI_IMail_sendGmReport, param2:int, param3:String, param4:String) : void
        {
            var _loc_5:* = makeContext(session);
            var _loc_6:* = makeCall("sendGmReport");
            var _loc_7:* = new SerializeStream();
            _loc_7.writeInt(param2);
            _loc_7.writeString(param3);
            _loc_7.writeString(param4);
            Outgoing.invokeAsync(_loc_5, _loc_6, _loc_7, param1);
            return;
        }// end function

        public function sendMail_async(param1:AMI_IMail_sendMail, param2:String, param3:String, param4:String, param5:int, param6:int, param7:Dictionary) : void
        {
            var _loc_8:* = makeContext(session);
            var _loc_9:* = makeCall("sendMail");
            var _loc_10:* = new SerializeStream();
            _loc_10.writeString(param2);
            _loc_10.writeString(param3);
            _loc_10.writeString(param4);
            _loc_10.writeInt(param5);
            _loc_10.writeInt(param6);
            DictStrIntHelper.write(_loc_10, param7);
            Outgoing.invokeAsync(_loc_8, _loc_9, _loc_10, param1);
            return;
        }// end function

    }
}
